package nl.boektrust.btsoep.server;

import com.googlecode.objectify.Query;
import com.googlecode.objectify.util.QueryWrapper;

public class MyQuery<PhysicalBookManifestation> extends QueryWrapper<PhysicalBookManifestation> {
	private static final int default_limit = 100;

	public MyQuery(Query<PhysicalBookManifestation> base, int offset, int limit) {
		super(base);
		if (limit > default_limit || limit < 0) {
			limit = default_limit;
		}
		this.limit(limit);
		this.offset(offset);
		// TODO Auto-generated constructor stub
	}

	public MyQuery(Query<PhysicalBookManifestation> base) {
		this(base, 0, default_limit);
	}

	public MyQuery(Query<PhysicalBookManifestation> base, int limit) {
		this(base, 0, limit);
	}

	
}